package com.mtsmda.jpa.domain.joinedTable;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@PrimaryKeyJoinColumn(referencedColumnName = "idPC")
@Table(name = "PC")
public class PC extends Computer {

	private static final long serialVersionUID = 1L;

	private Boolean isMouse;
	private String motherBoard;

	public PC() {
		super();
	}

	public PC(Integer volumeHdd, Integer volumeRam, Boolean isMouse,
			String motherBoard) {
		super(volumeHdd, volumeRam);
		setIsMouse(isMouse);
		setMotherBoard(motherBoard);
	}

	public Boolean getIsMouse() {
		return isMouse;
	}

	public void setIsMouse(Boolean isMouse) {
		this.isMouse = isMouse;
	}

	public String getMotherBoard() {
		return motherBoard;
	}

	public void setMotherBoard(String motherBoard) {
		this.motherBoard = motherBoard;
	}

}